// gulp的入口文件
const { series, parallel } = require('gulp');

const task1 = done => {
  setTimeout(() => {
    console.log(`task1`)
    done();
  }, 1000);
}

const task2 = done => {
  setTimeout(() => {
    console.log(`task2`)
    done();
  }, 1000);
}

const task3 = done => {
  setTimeout(() => {
    console.log(`task3`)
    done();
  }, 1000);
}


exports.a = series(task1, task2, task3);//串行任务

exports.b = parallel(task1, task2, task3);//并行任务

